﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Xml.Serialization;

namespace EBA.Logging
{
    /// <summary>
    /// log的XML文本
    /// </summary>
    public class XElementLog : ILog
    {
        /// <summary>
        /// id
        /// </summary>
        public string Id
        {
            get;
            set;
        }

        /// <summary>
        /// 等级
        /// </summary>
        public LogLevel Level
        {
            get;
            set;
        }

        /// <summary>
        /// 消息
        /// </summary>
        public string Message
        {
            get;
            set;
        }

        /// <summary>
        /// 添加时间
        /// </summary>
        public DateTime AddedTime
        {
            get;
            set;
        }

        /// <summary>
        /// 自定义数据形式
        /// </summary>
        public object Data
        {
            get;
            set;
        }

        //public string DataTypeName
        //{
        //    get;
        //    set;
        //}

        //public string DataJson
        //{
        //    get;
        //    set;
        //}

        /// <summary>
        /// 类别
        /// </summary>
        public string Name
        {
            get;
            set;
        }
    }
}
